package com.chat.controller;

import com.chat.service.GroupChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 群聊控制器
 *
 * @author wb
 * @since 2024-09-14
 */

@Controller
@RequestMapping("group")
public class GroupChatController {

    @Autowired
    private GroupChatService groupChatService;


    @GetMapping("/quit/{id}")
    public String quit(@PathVariable Integer id) {
        // TODO 退出群聊
        //groupChatService.quit(id);
        return "redirect:/chat";
    }
}
